<?php
$conexao = mysql_connect("localhost","root","") or die($msg[0]);
mysql_select_db("projetopw",$conexao) or die($msg[1]);
$codigo = $_REQUEST['codigo'];
$responsavel = $_REQUEST['responsavel'];

echo "$codigo";
echo "$responsavel";



$editar = mysql_query("UPDATE chamadas SET responsavel='$responsavel' WHERE codigo='$codigo'");

header ("Location: espera.php");

?>